InputPanel for WinForms | ComponentOne
C1.Win.4.5.2 Assembly / C1.Win.Drawing Namespace / StringRendererGDI Class / HighlightSubstring Method / HighlightSubstring(Graphics,Font,TextFormatFlags,Color,Rectangle,String,Color,IList<CharacterRange>) Method

In This Topic
    HighlightSubstring(Graphics,Font,TextFormatFlags,Color,Rectangle,String,Color,IList<CharacterRange>) Method
    In This Topic
    Syntax
    'Declaration
     
    Public Overloads Shared Sub HighlightSubstring( _
       ByVal graphics As Graphics, _
       ByVal font As Font, _
       ByVal textFormatFlags As TextFormatFlags, _
       ByVal foreColor As Color, _
       ByVal bounds As Rectangle, _
       ByVal text As String, _
       ByVal highlightColor As Color, _
       ByVal substringRanges As IList(Of CharacterRange) _
    ) 
    public static void HighlightSubstring( 
       Graphics graphics,
       Font font,
       TextFormatFlags textFormatFlags,
       Color foreColor,
       Rectangle bounds,
       string text,
       Color highlightColor,
       IList<CharacterRange> substringRanges
    )

    Parameters

    graphics
    font
    textFormatFlags
    foreColor
    bounds
    text
    highlightColor
    substringRanges
    See Also